package com.sens.vo;

import android.os.Parcel;
import android.os.Parcelable;

public class AliPayOrderVo implements Parcelable {
    private String time;
    private String tradeNo;
    private String mark;
    private String markType;
    private String money;
    private String unit;
    private String payType = "支付宝";
    private String state = "交易成功";
    private String userId;

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getTradeNo() {
        return tradeNo;
    }

    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }

    public String getMark() {
        return mark;
    }

    public void setMark(String mark) {
        this.mark = mark;
    }

    public String getMarkType() {
        return markType;
    }

    public void setMarkType(String markType) {
        this.markType = markType;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }


    @Override
    public String toString() {
        return "\n\t\ttime = " + time + ";" +
                "\n\t\ttradeNo = " + tradeNo + ";" +
                "\n\t\tmark = " + mark + ";" +
                "\n\t\tmoney = " + money + ";" +
                "\n\t\tpayType = " + payType + ";" +
                "\n\t\tstate = " + state + ";";
    }

    ////////////////////////////////////////////////////////////////////////////////////////////////
    public AliPayOrderVo() {
    }

    protected AliPayOrderVo(Parcel in) {
        time = in.readString();
        tradeNo = in.readString();
        mark = in.readString();
        markType = in.readString();
        money = in.readString();
        unit = in.readString();
        payType = in.readString();
        state = in.readString();
        userId = in.readString();
    }

    public static final Creator<AliPayOrderVo> CREATOR = new Creator<AliPayOrderVo>() {
        @Override
        public AliPayOrderVo createFromParcel(Parcel in) {
            return new AliPayOrderVo(in);
        }

        @Override
        public AliPayOrderVo[] newArray(int size) {
            return new AliPayOrderVo[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(time);
        dest.writeString(tradeNo);
        dest.writeString(mark);
        dest.writeString(markType);
        dest.writeString(money);
        dest.writeString(unit);
        dest.writeString(payType);
        dest.writeString(state);
        dest.writeString(userId);
    }
}
